var page = sm("do_Page");
var root = ui("$");
var checkBox = ui("checkBox");
var labelCommunityName=ui("labelCommunityName");
root.setMapping({
	"labelCommunityName.text" : "name",
	"labelCommunityName.tag" : "id"
});

var imgCheckBox = ui("imgCheckBox");
var iconCheck = ["source://image/common/checkbox.png","source://image/common/checkboxcheck.png"]

checkBox.on("checkChanged", function(isCheck) {
	var community = {};
	community.checked = isCheck;
	isCheck ? imgCheckBox.source=iconCheck[1] : imgCheckBox.source=iconCheck[0];
	community.id = labelCommunityName.tag;
	page.fire("check_change_event", community);
})